package adm.hikingapp;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.TextView;

public class AboutActivity extends Activity {

	private ImageButton btn_home;
	private TextView nombrePantalla;

	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);
        
        nombrePantalla = (TextView) findViewById(R.id.nombrePantalla);
		nombrePantalla.setText(R.string.aboutacti);
        
        btn_home = (ImageButton) findViewById(R.id.btnHome);
		btn_home.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent(AboutActivity.this, Dashboard.class);
				intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
				startActivity(intent);
				finish();
			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// getMenuInflater().inflate(R.menu.activity_about, menu);
		return true;
	}
}
